<template>
  <div style="padding: 20px">
    <el-card>
      <div slot="header">
        <span>批量添加展位</span>
        <el-button
          type="text"
          style="float: right; padding: 0px; margin-left: 14px"
          @click="back"
          >返回</el-button
        >
        <el-button
          type="text"
          style="float: right; padding: 0px; margin-left: 14px"
          >保存</el-button
        >
      </div>
      <div style="margin-top: 10px">
        <el-form ref="form" :model="form" label-width="80px">
          <el-form-item label="展区编号">
            <el-select v-model="model" placeholder="">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="展位号">
            <el-input placeholder="" style="width: 10%"></el-input>
            至
            <el-input placeholder="" style="width: 10%"></el-input>
          </el-form-item>
          <div
            class="border"
            style="border-top: 1px dashed #eee; padding: 20px 0"
          ></div>
          <el-form-item label="">
            <el-button type="primary">保存</el-button>
            <el-button type="primary">继续添加</el-button>
            <el-button>返回</el-button>
          </el-form-item>
        </el-form>
      </div>
    </el-card>
    <el-card style="margin-top: 20px">
      <div slot="header">
        <span>批量删除展位</span>
        <el-button
          type="text"
          style="float: right; padding: 0px; margin-left: 14px"
          @click="back"
          >返回</el-button
        >
        <el-button
          type="text"
          style="float: right; padding: 0px; margin-left: 14px"
          >保存</el-button
        >
      </div>
      <div style="margin-top: 10px">
        <el-form ref="form" :model="form" label-width="80px">
          <el-form-item label="展区编号">
            <el-select v-model="model" placeholder="">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="展位号">
            <el-input placeholder="" style="width: 10%"></el-input>
            至
            <el-input placeholder="" style="width: 10%"></el-input>
          </el-form-item>
          <el-form-item label="">
            <el-button type="primary">保存</el-button>
            <el-button>返回</el-button>
          </el-form-item>
        </el-form>
      </div>
    </el-card>
    <el-card style="margin-top: 20px">
      <div slot="header">
        <span>删除展位</span>
        <el-button
          type="text"
          style="float: right; padding: 0px; margin-left: 14px"
          @click="back"
          >返回</el-button
        >
        <el-button
          type="text"
          style="float: right; padding: 0px; margin-left: 14px"
          >保存</el-button
        >
      </div>
      <div style="margin-top: 10px">
        <el-form ref="form" :model="form" label-width="80px">
          <el-form-item label="展区编号">
            <el-select v-model="model" placeholder="">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="">
            <el-button type="primary">保存</el-button>
            <el-button>返回</el-button>
          </el-form-item>
        </el-form>
      </div>
    </el-card>
    <el-card style="margin-top: 20px">
      <div slot="header">
        <span>展位图</span>
        <el-button
          type="text"
          style="float: right; padding: 0px; margin-left: 14px"
          @click="back"
          >返回</el-button
        >
        <el-button
          type="text"
          style="float: right; padding: 0px; margin-left: 14px"
          >保存</el-button
        >
      </div>
      <div style="margin-top: 10px">
        <el-form ref="form" :model="form" label-width="80px">
          <el-form-item label="">
            <el-upload
              action="https://jsonplaceholder.typicode.com/posts/"
              list-type="picture-card"
              :on-preview="handlePictureCardPreview"
              :on-remove="handleRemove"
            >
              <i class="el-icon-plus"></i>
            </el-upload>
          </el-form-item>
        </el-form>
      </div>
    </el-card>
    <el-card style="margin-top: 20px">
      <div slot="header">展位情况一览</div>
      <div style="padding-top: 20px">
        <div class="txt">
          展会预订状态说明：
          <span class="state s1">可预订</span>
          可预订
          <span class="state s2">已预订</span>
          已预订
          <span class="state s3">审核中</span>
          审核中
          <span class="state s4">暂停预订</span>
          暂停预订
        </div>
        <div class="area">
          <ul>
            <li class="select">A区</li>
            <li>B区</li>
            <li>C区</li>
          </ul>
        </div>
        <div class="booth">
          <div class="li">
            <div class="statusTip">
              <div class="arrow"></div>
              <div class="box">
                <div class="t">状态：可预订</div>
                <div class="restxt link_blue">
                  <div class="btn pause">暂停预定</div>
                  <div class="btn delete">删除展位</div>
                </div>
              </div>
            </div>
            A11
          </div>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
};
</script>

<style lang="scss" scoped>
.txt {
  padding-left: 50px;
  line-height: 200%;
  padding-top: 25px;
}
.state {
  border: 1px solid #ccc;
  padding: 5px 10px;
  margin-left: 30px;
  margin-right: 7px;
  border-radius: 4px;
}
.s1 {
  background-color: #fff;
  color: #fff;
}
.s2 {
  background-color: #999;
  color: #999;
  border-color: #666;
}
.s3 {
  background-color: #f60;
  color: #f60;
  border-color: #f30;
}
.s4 {
  background-color: #fff;
  color: #fff;
  border: 1px dashed #999;
  padding: 5px 6px;
}
.area {
  padding-top: 25px;
  padding-left: 80px;
  ul {
    display: inline-block;
    font-size: 16px;
    padding: 0;
    li {
      list-style-type: none;
      line-height: 180%;
      float: left;
      padding: 4px 30px;
      background-color: #fff3d9;
      border: 1px solid #f5d485;
      cursor: pointer;
      margin-right: 30px;
      border-radius: 4px;
    }
    .select {
      background-color: #f60;
      color: #fff;
      border: 1px solid #f50;
    }
  }
}
.booth {
  padding-top: 15px;
  width: 1080px;
  padding-left: 80px;
  .li {
    width: 95px;
    font-size: 16px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border: 1px solid #ccc;
    color: #999;
    margin-right: 20px;
    float: left;
    margin-bottom: 20px;
    cursor: pointer;
    border-radius: 4px;
    position: relative;
    .statusTip {
      position: absolute;
      left: -1px;
      top: 33px;
      width: 320px;
      z-index: 1;
      display: none;
      .arrow {
        width: 18px;
        height: 7px;
        margin-left: 38px;
        background-image: url(../../../../../src/assets/common/箭头.png);
        background-repeat: no-repeat;
        background-position: -87px 0;
      }
      .box {
        width: 318px;
        border: 1px solid #fc4c4e;
        background-color: #fffcf1;
        border-radius: 4px;
        -webkit-box-shadow: 0 0 10px #e4e4e4;
        box-shadow: 0 0 10px #e4e4e4;
        .t {
          height: 38px;
          line-height: 38px;
          background-color: #fc4c4e;
          color: #fff;
          padding-left: 20px;
          text-align: left;
        }
        .restxt link_blue {
          text-align: center;
          padding-top: 20px;
          padding-bottom: 20px px;
          width: 280px;
          margin: 0 auto;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          color: #666;
          .btn {
            padding: 8px 20px;
            font-size: 14px;
            margin-left: 20px;
            background-color: #f60;
            color: #fff;
            border-radius: 20px;
          }
        }
      }
    }
  }
}
</style>
